package com.spring.demo.user.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.google.common.collect.Lists;
import com.spring.demo.AbstractDao;
import com.spring.demo.user.dao.IUserDao;
import com.spring.demo.user.pojo.User;

/**
 *
 * @author nickel
 * @date 2019-01-25 16:17:12
 */
@Repository
public class UserDao extends AbstractDao implements IUserDao {
	private static final List<User> users = Lists.newArrayList();

	@Override
	public boolean insert(User user) {
		users.add(user);
		return true;
	}

	@Override
	public List<User> getAll() {
		return users;
	}

}
